package constants;

public class FilterConst {
	public static final String GRAY_FILTER_ID = "gray_filter";
	public static final String GRAY_FILTER_NAME = "gray_filter";
	public static final int GRAY_FILTER_ORDER = 5;


	public static final String LIMIT_FILTER_ID = "limit_filter";
	public static final String LIMIT_FILTER_NAME = "limit_filter";
	public static final int LIMIT_FILTER_ORDER = 3;


	public static final String MOCK_FILTER_ID = "mock_filter";
	public static final String MOCK_FILTER_NAME = "mock_filter";
	public static final int MOCK_FILTER_ORDER = 4;


	public static final String LOAD_BALANCE_FILTER_ID = "load_balancer_filter";
	public static final String LOAD_BALANCE_FILTER_NAME = "load_balancer_filter";
	public static final int LOAD_BALANCE_FILTER_ORDER = 100;

	public static final String LOAD_BALANCE_KEY = "load_balancer";
	public static final String LOAD_BALANCE_STRATEGY_RANDOM = "Random";
	public static final String LOAD_BALANCE_STRATEGY_ROUND_ROBIN = "RoundRobin";


	public static final String ROUTER_FILTER_ID = "router_filter";
	public static final String ROUTER_FILTER_NAME = "router_filter";
	public static final int ROUTER_FILTER_ORDER = Integer.MAX_VALUE;



	//分布式限流
	public static final String FLOW_CTL_MODEL_DISTRIBUTED = "Distributed";

	//单机限流
	public static final String FLOW_CTL_MODEL_SINGLETON = "Singleton";

}
